package com.test.pattern.observer.before;

/**
 * @ClassName: WeixinUser
 * @description:
 * @author: Mr du
 * @create: 2024-03-14 22:46
 */
public class WeixinUser implements Observer{

    //微信用户名
    private String name;

    public WeixinUser(String name) {
        this.name = name;
    }

    @Override
    public void update(String message) {
        System.out.println(name + "-" + message);
    }
}
